<template>
  <page-body>
    <view class="page">
      <view
        class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex cardAndSafe_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-stretch justify-between cardAndSafe_fd0_0'>
          <view class='flex flex-wrap align-center cardAndSafe_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  cardAndSafe_fd0_0_c0_c0'>&#xe794;</text>
          </view>
          <view class='flex flex-wrap align-center'>
            <text class='cardAndSafe_fd0_0_c1_c0'>账号与安全</text>
          </view>
          <view class='flex align-center justify-end cardAndSafe_fd0_0_c2'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>

      <view class="flex flex-direction flex-wrap align-stretch cardAndSafe_flex_1">
        <view class='flex flex-wrap align-center justify-between cardAndSafe_fd1_0' @tap.stop="goPay"
          data-type="navigateTo" :data-url="`/pages/xtsz/changePwd/changePwd`">
          <text class='cardAndSafe_fd1_0_c0'>{{is_pay_password==0 ? '设置' : '修改'}}密码</text>
          <text class='fu-iconfont2  cardAndSafe_fd1_0_c1'>&#xE7F2;</text>
        </view>
        <view class='flex flex-wrap align-center justify-between cardAndSafe_fd1_0' @tap.stop="handleJumpDiy"
          data-type="navigateTo" :data-url="`/pages/xtsz/changeBingDingPhone/changeBingDingPhone`">
          <text class='cardAndSafe_fd1_0_c0'>修改绑定手机号</text>
          <text class='fu-iconfont2  cardAndSafe_fd1_0_c1'>&#xE7F2;</text>
        </view>
        <!-- <view class='flex flex-wrap align-center justify-between cardAndSafe_fd1_0'>
          <text class='cardAndSafe_fd1_0_c0'>实名认证</text>
          <view class='flex flex-wrap align-center'>
            <text class='cardAndSafe_fd1_2_c1_c0'>去认证</text>
            <text class='fu-iconfont2  cardAndSafe_fd1_0_c1'>&#xE7F2;</text>
          </view>
        </view> -->
        <view class='flex flex-wrap align-center justify-between cardAndSafe_fd1_3'>
          <text class='cardAndSafe_fd1_0_c0'>微信绑定</text>
          <view class='flex flex-wrap align-center'>
            <text class='cardAndSafe_fd1_2_c1_c0'>去认证</text>
            <text class='fu-iconfont2  cardAndSafe_fd1_0_c1'>&#xE7F2;</text>
          </view>
        </view>
      </view>


      <view class="flex flex-wrap align-center justify-center benben-position-layout flex cardAndSafe_flex_2"
        @tap.stop="gozhuxiaoFunc" data-type="navigateTo" :data-url="`/pages/xtsz/CancelAccount/CancelAccount`"
        :style="{height:(110+bottomSafeAreaRpx)+'rpx',paddingBottom:bottomSafeAreaRpx+'rpx', }">
        <text class='cardAndSafe_fd2_0'>注销账号</text>

      </view>
      <view :style="{height: (110+bottomSafeAreaRpx)+'rpx'}"></view>


    </view>
  </page-body>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'

  export default {
    components: {},


    data() {
      return {
        "is_pay_paw": {
          "falg": ""
        },
        is_pay_password: 0
      };
    },
    computed: {

    },
    watch: {},
    onLoad(options) {
      this.getxv5f64a4d364b44Func()
      this.getISset()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      goPay() {
        if (this.is_pay_password != 0) {
          uni.navigateTo({
            url: `/pages/xtsz/changePwd/changePwd`
          })
        } else {
          uni.navigateTo({
            url: `/pages/xtsz/changePwdOldCode/changePwdOldCode?is_pay_password=1`
          })
        }
      },
      getISset() {
        this.$api.post(global.apiUrls.post5c78c4772da97).then(res => {
          if (res.data.code == 1) {
            this.is_pay_password = res.data.data.is_pay_password
            console.log('is_pay_password', this.is_pay_password)
          }
        })
      },
      //获取注销状态1提交 3驳回
      async gozhuxiaoFunc() {
        let datadataDetails = await this.$api.get(global.apiUrls.post637c4deb97aa9, {
          sort_type: 'desc'
        });
        let status = datadataDetails.data.data.status
        if (datadataDetails.data.code != 1) { //如果code=0 没申请过
          uni.navigateTo({
            url: `/pages/xtsz/CancelAccount/CancelAccount`
          })
        } else {
          uni.navigateTo({
            url: `/pages/xtsz/logOutSubmit/logOutSubmit`
          })
        }
      },
      //订单支付-检测支付密码
      async getxv5f64a4d364b44Func() {
        //请求方法
        //数据验证

        let datais_pay_paw = await this.$api.post(global.apiUrls.post5f64a4d364b44, {

        });

        if (datais_pay_paw.data.code != 1) {
          this.$message.info(datais_pay_paw.data.msg);
          return
        }
        let infois_pay_paw = datais_pay_paw.data;
        this.is_pay_paw = infois_pay_paw.data

      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: #F8F8F8;
    background-size: 100% auto;
  }

  .cardAndSafe_flex_0 {
    border-bottom: 1px solid #eee;
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .cardAndSafe_fd0_0_c2 {
    padding: 0rpx 0rpx 0rpx 0rpx;
    width: 100rpx;
  }

  .cardAndSafe_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 500;
    color: var(--benbenFontColor0);
    line-height: 50rpx;
  }

  .cardAndSafe_fd0_0_c0_c0 {
    font-size: 36rpx;
    font-weight: 400;
    color: #333;
  }

  .cardAndSafe_fd0_0_c0 {
    width: 100rpx;
  }

  .cardAndSafe_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
    line-height: 88rpx;
  }

  .cardAndSafe_flex_1 {
    background: #fff;
    font-size: 32rpx;
    background-size: 100% auto !important;
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .cardAndSafe_fd1_3 {
    padding: 32rpx 0rpx 32rpx 0rpx;
  }

  .cardAndSafe_fd1_2_c1_c0 {
    margin: 0rpx 32rpx 0rpx 0rpx;
  }

  .cardAndSafe_fd1_0_c1 {
    font-size: 26rpx;
    color: rgba(191, 191, 191, 1);
    font-weight: 400;
  }

  .cardAndSafe_fd1_0_c0 {
    font-size: 32rpx;
    font-weight: 400;
    color: var(--benbenFontColor0);
  }

  .cardAndSafe_fd1_0 {
    border-bottom: 1px solid #eee;
    padding: 32rpx 0rpx 32rpx 0rpx;
  }

  .cardAndSafe_flex_2 {
    background: var(--benbenbgColor1);
    width: 750rpx;
    height: 110rpx;
    overflow: hidden;
    z-index: 10;
    bottom: calc(0rpx + var(--window-bottom));
    left: 0rpx;
    background-size: 100% auto;
  }

  .cardAndSafe_fd2_0 {
    font-size: 32rpx;
    color: rgba(23, 107, 232, 1);
    text-align: center;
  }
</style>
